#ifndef IMG_CONV_H
#define IMG_CONV_H

#include "ldCommInc.h"

void yuv422sp_to_yuv422p(unsigned char* yuv422sp, unsigned char* yuv422p, int width, int height);
void yuv420sp_to_yuv420p(unsigned char* yuv420sp, unsigned char* yuv420p, int width, int height);
void yuv420p_to_yuv420sp(unsigned char* yuv420p , unsigned char* yuv420sp, int width, int height);

void  rgaFmtConvert(int SrcWidth,int SrcHeight,int SrcFmt,uint8_t* pSrcData,
                    int DstWidth,int DstHeight,int DstFmt,uint8_t* pDstData);

///////////////////////////////////////////////////////////
void  rgaFmtConvertFlip(int SrcWidth,int SrcHeight,int SrcFmt,uint8_t* pSrcData,
                    int DstWidth,int DstHeight,int DstFmt,uint8_t* pDstData,
                        uint8_t* pRGBBuff);
#endif // IMG_CONV_H
